﻿using MongoDB.Bson;
using Project.Core.Api.Common.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Project.Core.Api.Controllers.System.IRole.Dto
{
    /// <summary>
    /// 角色Dto
    /// </summary>
    public class UserRoleDto : BaseDto
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        [Required(ErrorMessage = "The RoleName is Required")]
        public string RoleName { get; set; }

        /// <summary>
        /// 角色说明
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 所属上级
        /// </summary>
        public int Belong { get; set; }

        /// <summary>
        /// 角色子项
        /// </summary>
        public List<UserRoleDto> Children { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string Creater { get; set; }
        /// <summary>
        /// 查询数据权限
        /// 1：全部，2：本角色，3：自己
        /// </summary>
        public int QueryAuthority { get; set; }

    }
}
